
<div class="panel panel-default panel-intro">

    <div class="panel-body">
        <form name="search-form" role="form" method="get" data-toggle="validator"
              class="form-horizontal col-sm-12" action="">
            <div class="form-group">
                <div class="col-xs-12 col-sm-12">
                    <div class="input-group">
                        <input class="form-control datetimepicker"
                               placeholder="指定年份" autoComplete='off'
                               data-date-format="YYYY"
                               style="width: 200px;margin: 10px" name="row[year]" value="{$year}" type="number">

                        <button type="submit" class="btn btn-success" style="margin: 10px" >搜索</button>
                    </div>
                </div>
            </div>
        </form>
        <div class="col-xs-12 col-sm-12">
            <div class="div-box">
                <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;">
                </div>
                <div id="echart" style="width:100%;height: 457px"></div>
            </div>
        </div>
        <div class="col-xs-12 col-sm-12" style="padding-left:5%;padding-right:5%;padding-top:3%;">
            <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%" style="">
                <thead>
                <tr class="qd_table_color" >

                    <th style="text-align: center;">
                        {$year}年度
                    </th>
                    {foreach name="$data.date" item="val"}
                    <th style="text-align: center;" >
                        {$val}
                    </th>
                    {/foreach}
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td style="text-align: center;">销售金额</td>
                    {foreach name="$data.price" item="val" key="k"}
                    <td style="text-align: center;">{$val}</td>
                    {/foreach}
                </tr>
                <tr>
                    <td style="text-align: center;">销售数量</td>
                    {foreach name="$data.number" item="val" key="k"}
                    <td style="text-align: center;">{$val}</td>
                    {/foreach}
                </tr>

                </tbody>
            </table>
        </div>
    </div>
</div>




<script>
    var Orderdata = {
        data:{:json_encode($data)}
    };
</script>